/**
 * A nice centered 2-column layout inspired by Joi Ito's web site
 *
 * @link http://joi.ito.com/
 * @link http://www.webmasterworld.com/forum83/6950.htm Make input have different width for submit buttons and text fields
 *
 * This single style sheet takes care of all media (screen, handheld, print, etc.)
 *
 * This style sheet has been checked against Mozilla Firefox version 1 and Microsoft Internet Explorer version 6.
 * You may have to split this file into several pieces to avoid side-effects on legacy browsers such as Netscape navigator 4.7, etc.
 *
 * Styles are ordered according to following list:
 * - standard HTML and XHTML tags are refined
 * - unique styles used for page layout
 * - other unique styles
 * - classes
 *
 * Where applicable we have also mentioned the YACS codes related to styles.
 * You can find more information on YACS codes at codes/codes.php and related pages.
 *
 * @author Bernard Paques
 * @reference
 * @license http://www.gnu.org/copyleft/lesser.txt GNU Lesser General Public License
 */

/**
 * import core YACS reference style sheet -- this has to come before any other rule
 */
@import url("../_reference/yacs.css");

/**
 * standard tags - redefine behaviour of reference HTML and XHTML tags
 * to ensure that all browsers will be aligned
 */

a,
a code { /* basic link */
	text-decoration: none;
	cursor: pointer; /* help ie on folded boxes */
}

a:link,
a:link code { /* link displayed for the first time */
	color: #06F;
}

a:visited,
a:visited code { /* link that has been used at least once */
	color: #03c;
}

a:active,
a:active code { /* link at the moment it is clicked */
	color: #f00;
}

a:hover,
a:hover code { /* link below the mouse pointer */
	color: #f60;
}

a img { /* avoid borders around images used as links */
	border: none;
}

body { /* most elements will inherit some of these attributes */
	color: #444;
	background-color: #fff;
	font-family: "Century Gothic", Helvetica, sans-serif;
	font-size: small;
}

@media screen { /* on large screen */

	body { /* limit the horizontal size of everything, and center it in the page */
		margin: 0 auto;
		padding: 0;
		width: 770px; /* equals width of wrapper */
	}

}

h1 { /* appears only once, with the page title */
	color: #000;
	font-size: medium;
	font-weight: bold;
	margin: 20px 0 4px 0;
	padding: 0;
}

h2 { /* appears in the main content panel, to introduce sections of the page -- [title]...[/title], [question]...[/question] */
	clear: left;
	color: #333;
	font-weight: bold;
	font-size: small;
	font-style: normal;
	margin: 20px 0 2px 0;
	border: none;
	padding: 0;
}

h3 { /* a second level of heading in the main panel -- [subtitle]...[/subtitle] */
	clear: left;
	color: #333;
	font-weight: bold;
	font-size: x-small;
	font-style: normal;
	margin: 20px 0 2px 0;
	padding: 0 0 2px 0;
	border-bottom: 1px dotted #ccc;
}

img { /* a standard image */
	margin: 0;
	padding: 0;
}

input[type="password"],
input[type="text"] { /* ensure form fields fit in the layout */
	color: black;
	background-color: white;
	max-width: 300px;
}

input:focus { /* help to locate the current field */
	color: black;
}

li { /* avoid justification alignment */
	text-align: left;
}

#footer_panel p { /* in the footer, make top and bottom spaces look equal */
	margin: 0 0 0.25em 0;
}

pre { /* a block of sample lines -- [php]...[/php], [snippet]...[/snippet] */
	background-color: #f7f7f7;
	width: 400px;
}

select {
	color: black;
	background-color: white;
}

select:focus { /* help to locate the current field */
	color: black;
	background-color: #dedede;
}

table { /* an ordinary table -- [table]...[/table] */
	max-width: 530px;
	width: expression(this.width > 530 ? 530: true); /* just for IE 6 */
}

textarea { /* ensure form fields fit in the layout */
	color: black;
	background-color: white;
	max-width: 400px;
	width: expression(this.width > 400 ? 400: true); /* just for IE 6 */
}

textarea:focus { /* signal current input area */
	color: black;
	background-color: #dedede;
}

ul { /* an ordinary list -- [list]...[/list] */
	margin: 0.5em 0 1em 1em;
	padding: 0 0 0 1em;
	list-style: square;
}

/**
 * layout elements - also add behaviour for related sub-elements where applicable
 */

#footer_panel { /* comes after everything */
	clear: both;
	margin: 60px 0 0 0;
	padding: 6px;
	color: #036;
	background: #e6e6e6;
	border: 1px solid #ccc;
	font-weight: normal;
	font-size: x-small;
	text-align: center;
}

@media print { /* do not print footer information */

	#footer_panel {
		display: none;
	}

}

#header_panel { /* comes before everything */
	background-image: url("images/header_background.jpg");
	text-align: left;
	padding: 0;
	margin: 0 0 7px 0;
	border-bottom: 2px ridge #866C52;
	height: 120px;
}

@media print { /* do not print heading information */

	#header_panel {
		display: none;
	}

}

@media screen { /* only on a wide screen */

	#main_panel { /* where the actual content is */
		float: left;
		width: 550px;
		overflow: hidden;
		margin: 0;
		padding: 0 0 0 4px;
	}

	#main_panel a code { /* next rule do not impact links (eg, <code> in [toc]) */
		background-color: transparent;
	}

	#main_panel code { /* make code more visual */
		background-color: #f7f7f7;
	}

	#main_panel pre code { /* use block attributes instead of in-line attributes */
		background-color: transparent;
		margin: 0;
		padding: 0;
	}

}

#side_panel { /* complementary information related to this page */
	float: right;
	width: 200px;
	overflow: hidden;
	font-family: sans-serif;
	font-size: 8pt;
}

@media print { /* do not print complementary information */

	#side_panel {
		display: none;
	}

}

#side_panel dl { /* actually, a box on the side panel */
	margin: 0;
	padding: 0;
}

#side_panel dl dd { /* body of one side box */
	color: #666666;
	font-weight: normal;
	font-size: 8pt;
	line-height: 1.2em;
	background-color: #fff;
	margin: 0 0 5px 0;
	padding: 6px;
	border: 1px solid #866C52;
}

#side_panel dl dd ul { /* a list in a side box */
	margin: 0 0 0 0.5em;
	padding: 0 0 0 1em; /* ok under IE, too much under firefox... */
	list-style-type: disc;
}

#side_panel dl dd ul li { /* space between links in a side box */
	margin: 0 0 3px 0;
	padding: 0;
}

#side_panel dl dt { /* used for titles of various boxes */
	color: #fff;
	background-color: #866C52;
	font-weight: bold;
	font-size: 8pt;
	text-align: left;
	margin: 5px 0 0 0;
	padding: 2px 0px 2px 4px;
	border-top: 1px solid #866C52;
	border-left: 1px solid #866C52;
	border-right: 1px solid #866C52;
}

#wrapper { /* contains everything */
	text-align: left;
}

@media screen { /* on large screen */

	#wrapper { /* limit the horizontal size of everything, and center it in the page */
		margin: 0;
		padding: 0;
		width: 770px;
		background: #ccc url("images/code_background.gif") repeat;
	}

}

/**
 * unique elements - may appear in one or several pages
 */

dl#categories dd ul { /* categories related to an article, on page side -- articles/view.php */
	margin: 0;
	padding: 0;
	list-style: none;
}

dl#categories dd ul li { /* space between links */
	margin: 0 0 4px 0;
	padding: 0;
}

#featured { /* the navigation box for statically featured pages -- index.php, sections/view.php */
}

#featured hr { /* simple rule between items */
	border-top: none;
	border-left: none;
	border-right: none;
	border-bottom: 1px dotted #447;
	height: 0px;
}

dl#featured.extra_box dd ul { /* the list of featured pages */
	margin: 0;
	padding: 0;
	list-style: none;
}

/* two gadget boxes per row -- look at index.php and sections/view.php  */

dl.gadget_box {
	background-color: transparent;
	background-image: none;
	width: 250px;
}

dl#gadget_1.gadget_box dd { /* content of gadget box #1 */
	border: none;
	border-top: 2px solid #866C52;
	padding: 3px 0 0 0;
	background-color: transparent;
	background-image: none;
}

dl#gadget_1.gadget_box dt { /* header of gadget box #1 */
	border: none;
	background-color: transparent;
	background-image: none;
}

dl#gadget_2.gadget_box dd { /* content of gadget box #2 */
	border: none;
	border-right: 2px solid #866C52;
	padding: 0 3px 0 0;
	background-color: transparent;
	background-image: none;
}

dl#gadget_2.gadget_box dt { /* header of gadget box #2 */
	border: none;
	background-color: transparent;
	background-image: none;
}

dl#gadget_3.gadget_box { /* new line for gadget box #3 */
	clear: left;
}

dl#gadget_3.gadget_box dd { /* content of gadget box #3 */
	border: none;
	border-left: 2px solid #866C52;
	padding: 0 0 0 3px;
	background-color: transparent;
	background-image: none;
}

dl#gadget_3.gadget_box dt { /* header of gadget box #3 */
	border: none;
	background-color: transparent;
	background-image: none;
}

dl#gadget_4.gadget_box dd { /* content of gadget box #4 */
	border: none;
	border-bottom: 2px solid #866C52;
	padding: 0 0 5px 0;
	background-color: transparent;
	background-image: none;
}

dl#gadget_4.gadget_box dt { /* header of gadget box #4 */
	border: none;
	background-color: transparent;
	background-image: none;
}

dl#gadget_5.gadget_box { /* new line for gadget box #5 */
	clear: left;
}

dl#gadget_5.gadget_box dd { /* content of gadget box #5 */
	border: none;
	border-top: 2px solid #866C52;
	padding: 0 0 0 3px;
	background-color: transparent;
	background-image: none;
}

dl#gadget_5.gadget_box dt { /* header of gadget box #5 */
	border: none;
	background-color: transparent;
	background-image: none;
}

dl#gadget_6.gadget_box dd { /* content of gadget box #6 */
	border: none;
	border-right: 2px solid #866C52;
	padding: 0 0 5px 0;
	background-color: transparent;
	background-image: none;
}

dl#gadget_6.gadget_box dt { /* header of gadget box #6 */
	border: none;
	background-color: transparent;
	background-image: none;
}

#header_slogan { /* appears towards the top of the page -- see template script */
	float: left;
	clear: left;
	margin: 0 0 0 15px;
	padding: 0;
	font-size: 8pt; /* we don't care to be not resized by IE */
	text-align: left;
}

#header_title { /* appears towards the top of the page -- see template script */
	color: #800;
	font-size: 12pt; /* we don't care to be not resized by IE */
	font-weight: bold;
	margin: 20px 0 4px 15px;
	padding: 0;
}

#header_title a { /* adapt the color to the backdrop image */
	color: #800;
}

@media screen { /* for the home page, only on large screens -- index.php */

	#newest { /* the most new article at the home page, in layouts: daily, newspaper, slashdot */
	    border: 1px solid #fa0;
	    width: 530px;
	}

}

dl#neighbours dd ul { /* navigation commands on page side -- articles/view.php */
	margin: 0;
	padding: 0;
	list-style: none;
}

dl#neighbours dd ul li { /* space between links */
	margin: 0 0 4px 0;
	padding: 0;
}

#tools img { /* towards bottom of the page -- see articles/view.php */
	margin-right: 4px; /* space between icons and labels */
}

dl#user_menu dd ul { /* commands that apply to this user -- see template script */
	margin: 0;
	padding: 0;
	list-style: none;
}

/**
 * styles by classes
 */

table.calendar { /* add bottom and right borders to the table*/
	border-spacing: 0;
	border-collapse: collapse;
	border-bottom: 1px solid #bfbfbf;
	border-right: 1px solid #bfbfbf;
	margin-bottom: 1em;
}

table.calendar caption,
table.calendar caption a { /* calendar caption */
	font-weight: normal;
	font-style: normal;
	color: #fff8ff;
	background-color: #8D90AB;
	text-align: left;
	padding: 4px;
}

table.calendar td,
table.calendar th { /* add top and left borders to each cell */
	border-top: 1px solid #bfbfbf;
	border-left: 1px solid #bfbfbf;
	margin: 0;
	padding: 4px;
	vertical-align: top;
    text-align: left;
}

table.calendar td.spot {
	background-color: #eee;
	font-weight: bold;
}

div.even { /* stacked with div.odd */
	padding: 0.5em 0;
}

.highlight1 { /* to locate words looked for, following a search request */
	background-color: #80FF80;
}

.highlight2 {
	background-color: #8080FF;
}

.highlight3 {
	background-color: #FF8080;
}

table.jive {
	max-width: 550px;
	width: 550px;
}

.menu { /* a small inline menu, almost anywhere */
    text-align: left;
	font-family: sans-serif;
	font-size: 7pt; /* not rezisable by IE PC */
}

div.odd { /* stacked with div.even */
	padding: 0.5em 0;
}

#main_panel td.odd { /* one row out of two, but only in the main panel */
	background-color: #fff8ff;
}

div.sidebar_box { /* somewhere in the main panel -- [sidebar]...[/sidebar] */
	float: left;
	margin: 0.5em 1em 0.3em 0;
}

div.sidebar_box div { /* body of one sidebar box */
	background-color: #fff;
	color: #666;
	font-weight: normal;
	font-size: 8pt;
	text-align: left;
	padding: 2px;
	border: 1px solid #bfbfbf;
}

div.sidebar_box h3 { /* header of one sidebar box -- the 'foo bar' of [sidebar=foo bar]...[/sidebar] */
	background-color: #ccc;
	color: #666;
	font-weight: normal;
	font-size: 8pt;
	text-align: center;
	margin: 0;
	padding: 2px 2px 0px 2px;
	border-top: 1px solid #bfbfbf;
	border-left: 1px solid #bfbfbf;
	border-right: 1px solid #bfbfbf;
}

